package com.cheng.dao;

import com.cheng.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UserMapper {
    User getUserByUsername(String username);
    int InsertUser(User user);
    List<User> getUser(Map map);

    int updateUser(User user);
    int deleteUser(int id);
}
